﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LightingPlatform.TCP
{
    public class ProtocolData
    {
        public const byte Head = 0x7E;
        public const byte HeadEscape = 0x7D;
        public const byte HeadEscape1 = 0x02;
        public const byte HeadEscape2 = 0x01;

        public const byte Tail = 0x7C;
        public const byte TailEscape = 0x7B;
        public const byte TailEscape1 = 0x02;
        public const byte TailEscape2 = 0x01;

        public int CommandID { get; set; }
        public int SerialNumber { get; set; }
        public int Length { get; set; }
        public byte[] Data { get; set; }
    }
}
